let mongoose = require('mongoose');

module.exports={
    add:async function(options){
        let nowTick=new Date().getTime();
        let ChannelEventModel=mongoose.models['ChannelEvent'];
        ChannelEventModel.create({
            channelId:options.self.referrerInfoAppId,
            addTimeTick:nowTick,
            eventName:options.eventName
        });
    }
}